package com.yanqu.road.entity.log.curio;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_curio_badge_upgrade", autoSave = true, dataUpload = true, eventName = "treasure_medalup", desc = "藏宝勋章升级", uploadCk = true)
public class LogCurioBadgeUpgrade extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "玩家id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "升级前等级")
    private int oldBadgeId;

    @FieldTypeAnnotation(dataAttribute = "treasure_level", desc = "升级后等级")
    private int newBadgeId;

    public LogCurioBadgeUpgrade(long userId, int oldBadgeId, int newBadgeId) {
        this.userId = userId;
        this.oldBadgeId = oldBadgeId;
        this.newBadgeId = newBadgeId;
    }

    public long getUserId() {
        return userId;
    }
}
